package Visitor;


public class DisplayVisitor implements IVisitor {

	@Override
	public void visit(Paragraph p) {
		
		System.out.println(p.text);
		
	}

	@Override
	public void visit(Section s) {
		System.out.println(s.title);
		for(int i=0;  i<s.title.length(); i++){
			System.out.print("=");
		}
		System.out.println();
		
	}
	
	
	
}
